-
Notifications
You must be signed in to change notification settings - Fork 148
bpf: introduce and use rcu_migrate_{enable,disable} #9494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Upstream branch: 0786654 |
c210f22
to
2530e45
Compare
Upstream branch: dc0fe95 |
624cfe2
to
bb7bd75
Compare
2530e45
to
61c9cef
Compare
Upstream branch: c80d797 |
bb7bd75
to
919e0d3
Compare
61c9cef
to
715d6cb
Compare
Upstream branch: 3ec8560 |
919e0d3
to
0761b79
Compare
715d6cb
to
506c27a
Compare
Upstream branch: 1274163 |
0761b79
to
754c5c0
Compare
506c27a
to
76c716d
Compare
Upstream branch: d87fdb1 |
754c5c0
to
3908629
Compare
76c716d
to
f3b4b37
Compare
Upstream branch: dbe99ea |
3908629
to
e309a6f
Compare
f3b4b37
to
bf66d41
Compare
Upstream branch: 6850a33 |
e309a6f
to
654a35d
Compare
bf66d41
to
74b5324
Compare
Upstream branch: dbe99ea |
654a35d
to
cf23803
Compare
74b5324
to
c3c6b4b
Compare
migrate_disable() is called to disable migration in the kernel, and it is used togather with rcu_read_lock() oftenly. However, with PREEMPT_RCU disabled, it's unnecessary, as rcu_read_lock() will disable preemption, which will also disable migration. Introduce rcu_migrate_enable() and rcu_migrate_disable(), which will do the migration enable and disable only when the rcu_read_lock() can't do it. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_cgrp_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_inode_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_iter_run_prog to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_task_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Upstream branch: 5c42715 |
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_prog_run_array_cg to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in trampoline.c to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
cf23803
to
d40d78f
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=991794 expired. Closing PR. |
Pull request for series with
subject: bpf: introduce and use rcu_migrate_{enable,disable}
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=991794